wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/Milan-ASL/Milan-ASL%20V100R001C13SPC702/Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run -O Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run
chmod +x Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run
./Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run --install --force
wget https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.tar.gz
tar -xf cmake-3.26.4-linux-x86_64.tar.gz
./Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run --check
wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/Milan-ASL/Milan-ASL%20V100R001C13SPC702/Ascend-cann-communitysdk_7.0.RC1.alpha002_linux-x86_64.tar.gz -O Ascend-cann-communitysdk_7.0.RC1.alpha002_linux-x86_64.tar.gz
tar -xf Ascend-cann-communitysdk_7.0.RC1.alpha002_linux-x86_64.tar.gz -C ~/Ascend/ascend-toolkit/latest
pip3 install sympy
source /home/ma-user/Ascend/ascend-toolkit/set_env.sh
export ASCEND_CUSTOM_PATH=$HOME/Ascend/ascend-toolkit/latest
export ASCEND_HOME_DIR=$HOME/Ascend/ascend-toolkit/latest
export PATH=/home/ma-user/work/cmake-3.26.4-linux-x86_64/bin:$PATH
export DDK_PATH=/home/ma-user/Ascend/ascend-toolkit/latest
export NPU_HOST_LIB=/home/ma-user/Ascend/ascend-toolkit/latest/x86_64-linux/lib64
export ASCEND_HOME_DIR=/home/ma-user/Ascend/ascend-toolkit/latest
---------------------------------------------------------------
cd $HOME/work
unzip test.zip
cd $HOME/work/Midstage-test-student
bash run.sh SinhCustom ascend910B1 VectorCore cpu
python3 verify_result.py ./output/output_z.bin ./output/golden.bin
bash run.sh SinhCustom ascend910B1 VectorCore npu
----------------------------------------------------------------
git clone -b master --single-branch --depth=1 https://gitee.com/ascend/samples.git
cd ./samples/cplusplus/level1_single_api/4_op_dev/6_ascendc_custom_op/kernel_invocation/Add
bash run.sh add_custom ascend910 AiCore cpu
bash run.sh add_custom ascend910B1 VectorCore cpu
cd $HOME/work/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom
./build.sh
cd build_out
./custom_opp_<target os>_<target architecture>.run
--------------------------------------------------------
gcc -I/home/ma-user/Ascend/ascend-toolkit/latest/x86_64-linux/include a.c
find -name 